package com.jjw.springbootcvs.service;

import com.github.pagehelper.PageInfo;
import com.jjw.springbootcvs.pojo.dto.SysUserAndSysRoleDTO;
import com.jjw.springbootcvs.pojo.entity.SysUser;
import com.jjw.springbootcvs.pojo.vo.PageUserListVO;

/**
 * @author xiaojuan
 * @Date 2024/11/1
 * @Description
 */
public interface UserService {

    SysUser login(String userName, String password);

    PageInfo<PageUserListVO> getAllUserList(SysUserAndSysRoleDTO sysUserAndSysRoleDTO);

    SysUser getUserByAccount(String code);

    void insert(SysUser sysUser);

    void delete(Long id);

    SysUser getUserById(Long id);

    void update(SysUser sysUser);

    SysUser getUserByPassword(Long id, String oldPassword);

    void updateByPassword(Long id, String newPassword);
}
